package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `gorm:"type:char(11)" json:"mobile"`
	Password string `gorm:"type:char(32)" json:"password"`
}
type Product struct {
	gorm.Model
	Name    string  `gorm:"type:varchar(30)" json:"name"`
	UserId  int64   `gorm:"type:int(11)" json:"userId"`
	Context string  `gorm:"type:varchar(300)" json:"context"`
	Price   float64 `gorm:"type:decimal(10,2)" json:"price"`
	Image   string  `gorm:"type:varchar(500)" json:"image"`
}
